//
//  ADJgCustomAdapterTestNativeAdView.m
//  ADJgCustomPlatform
//
//  Created by Suancai on 2021/9/7.
//

#import "ADJgCustomAdapterBUNativeAdView.h"

@interface ADJgCustomAdapterBUNativeAdView ()

@end

@implementation ADJgCustomAdapterBUNativeAdView

#pragma mark - setter

- (void)setBuNativeAdView:(BUNativeExpressAdView *)buNativeAdView{
    _buNativeAdView = buNativeAdView;
    [self addSubview:buNativeAdView];
}


#pragma mark - ADJgAdapterNativeAdViewDelegate

- (void)adjg_registViews:(NSArray<UIView *> *)clickViews {
    [self.buNativeAdView render];
    [self.delegate adjgCustomNativeViewRenderSuccess:self];
}

- (void)adjg_unRegistView {
    
}

- (ADJgAdapterRenderType)renderType {
    return ADJgAdapterRenderTypeExpress;
}

- (ADJgAdapterNativeAdData *)data {
    return nil;
}

- (nullable UIView *)adjg_mediaViewForWidth:(CGFloat)width {
    return nil;
}

- (BOOL)adjg_closeButtonExist {
    // 是否存在关闭按钮
    return YES;
}

#pragma mark - ADJgAdViewInfoProtocol

- (ADJgAdapterPlatform)adjg_platform {
    return @"toutiao";
}

@end
